package com.sebastian.studies.ch10_10_2;

public class Circles extends GeometricObject {

	private double radius;

	public Circles() {
	}

	public Circles(double rds) {
		this.radius = rds;
	}
	
	public double getRadius() {
		return radius;
	}

	public void setRadius(double rds) {
		this.radius = rds;
	}

	public double getArea() {
		return radius * radius * Math.PI;
	}

	public double getDiameter() {
		return 2 * radius;
	}

	public double getPerimeter() {
		return 2 * radius * Math.PI;
	}

	public void printCircleInfo() {
		System.out.print("The circle is created on: " + getDateCreated() + "and the radius is: " + radius);
	}
}
